'''
Created on Feb 7, 2012

@author: Michael Lawson

This is the driver program for the PyBEM code
'''
from bemStructures import *
import bemPlotting as bemPlt
import os
import pylab as pl

help(bemPlt)


# Initialize the solver
sim = Simulation(os.curdir)
fluid = Fluid(sim.simData)
rotor = Rotor(sim.inputDir)

# Output the simulation parameters
sim.Disp()
fluid.Disp()
rotor.Disp()

# Create plot s
bemPlt.PlotBlade(rotor.blade.r,rotor.blade.chord,rotor.blade.preTwist,rotor.blade.t)
bemPlt.PlotCases(sim.cases.U,sim.cases.omega,sim.cases.pitch)